import React from "react";

interface HotNewsProps {
    onGoList: () => void;
}
const HotNews:React.FC<HotNewsProps> = ({onGoList}) => {
    const goList = () => {
        onGoList();
    }
    return (
        <>
            <div className="m-3 mt-5 flex justify-between items-center">
                <span className="font-bold text-lg text-black">Hot News</span>
                <span className="text-rose-500 text-sm" onClick={goList}>See All</span>
            </div>
        </>
    )
}

export default HotNews;